package com.mingyuan.library.infra.lending.patron.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mingyuan.library.infra.lending.patron.entity.PatronDatabaseEntity;
import org.apache.ibatis.annotations.Param;

import java.util.UUID;

/**
 * @author yangzk
 * @version 1.0.0
 * @date 2024.01.16 15:46
 */
public interface PatronDatabaseEntityMapper extends BaseMapper<PatronDatabaseEntity> {
    /**
     * 根据读者ID查询读者信息
     * @author yangzk
     * @param patronId 读者ID
     * @date 2024/1/16 15:53
     **/
    PatronDatabaseEntity findByPatronId(@Param("patronId") UUID patronId);
}
